



// 大屏适配开始~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@use 'sass:math';
// 默认设计稿的宽度
$designWidth: 1920;
// 默认设计稿的高度
$designHeight: 1080;

// px 转为 vw 的函数
@function vw($px) {
  @return math.div($px, $designWidth) * 100vw;
}

// px 转为 vh 的函数
@function vh($px) {
  @return math.div($px, $designHeight) * 100vh;
}
// 大屏适配结束~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


@for $i from 1 through 60 {
  // @if (($i % 2) ==0 and $i >= 10) {
  @if (($i % 2) ==0) {
    // 加粗600  字体
    .font-600-#{$i} {
      font-size: $i + px;
      font-weight: 600;
    }

    // 字体大小
    .font-#{$i} {
      font-size: $i + px;
    }

    // 内边距
    .p-#{$i} {
      padding: $i + px;
    }
    .p-x-#{$i} {
      padding-left: $i + px;
      padding-right: $i + px;
    }
    .p-y-#{$i} {
      padding-top: $i + px;
      padding-bottom: $i + px;
    }
    .p-t-#{$i} {
      padding-top: $i + px;
    }
    .p-b-#{$i} {
      padding-bottom: $i + px;
    }
    .p-l-#{$i} {
      padding-left: $i + px;
    }
    .p-r-#{$i} {
      padding-right: $i + px;
    }

    // 外边距
    .m-#{$i} {
      margin: $i + px;
    }
    .m-x-#{$i} {
      margin-left: $i + px;
      margin-right: $i + px;
    }
    .m-y-#{$i} {
      margin-top: $i + px;
      margin-bottom: $i + px;
    }
    .m-t-#{$i} {
      margin-top: $i + px;
    }
    .m-b-#{$i} {
      margin-bottom: $i + px;
    }
    .m-l-#{$i} {
      margin-left: $i + px;
    }
    .m-r-#{$i} {
      margin-right: $i + px;
    }
  }

  // 100-900
  // @else if($i <= 9) {
  @if ($i <= 9) {
    .font-w-#{($i * 100)} {
      font-weight: $i * 100;
    }

    .opacity-#{$i} {
      opacity: $i / 10;
    }
  }
  @if ($i <= 5) {
    .u-line-#{$i} {
      /* #ifdef APP-NVUE */
      // nvue下，可以直接使用lines属性，这是weex特有样式
      lines: $i;
      text-overflow: ellipsis;
      overflow: hidden;
      flex: 1;
      /* #endif */

      /* #ifndef APP-NVUE */
      // vue下，单行和多行显示省略号需要单独处理
      @if $i == '1' {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      } @else {
        display: -webkit-box !important;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-all;
        -webkit-line-clamp: $i;
        -webkit-box-orient: vertical !important;
      }
      /* #endif */
    }
  }
}
img,
video,
img {
  vertical-align: middle;
}

/* 文本对齐方式 */
.font-center {
  text-align: center;
}

.font-right {
  text-align: right;
}

.font-left {
  text-align: left;
}

/* 文本删除线 */
.font-del {
  text-decoration: line-through;
}

/* 通用字体颜色 */
.color-000 {
  color: #000;
}

.color-333 {
  color: #333;
}

/* 字体置灰颜色 */
.color-666 {
  color: #666;
}

/* 字体置灰颜色 */
.color-999 {
  color: #999;
}

.color-fff {
  color: #fff;
}

/* 价格颜色 */
.price-color {
  color: red;
}

/* 透明颜色 */
.color-transparent {
  color: transparent;
}

/* 链接一类颜色 */
.link-color {
  color: #2495ff;
}

.cspt {
  cursor: pointer;
}

.flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
}

.flex-w-1 {
  flex: 1;
  width: 0;
}

.flex-h-1 {
  flex: 1;
  height: 0;
}

.flex-x-end {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.flex-x-start {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.flex-x-sb {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  -webkit-box-pack: space-between;
  -ms-flex-pack: space-between;
  justify-content: space-between;
}

.flex-x-sa {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  -webkit-box-pack: space-around;
  -ms-flex-pack: space-around;
  justify-content: space-around;
}

.flex-x-center {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.flex-y-center {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -ms-grid-row-align: center;
  align-items: center;
}

.flex-y-end {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  -webkit-box-align: end;
  -ms-flex-align: end;
  -ms-grid-row-align: flex-end;
  align-items: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-grow-1 {
  min-width: 0;
  /* -webkit-box-flex: 1; */
  /* -webkit-flex-grow: 1; */
  /* -ms-flex-positive: 1; */
  flex-grow: 1;
  flex: 1;
  /* -webkit-flex-shrink: 1; */
  /* -ms-flex-negative: 1; */
  /* flex-shrink: 1; */
}

.flex-grow-0 {
  /* min-width: 0; */
  /* -webkit-box-flex: 1; */
  /* -webkit-flex-grow: 1; */
  /* -ms-flex-positive: 1; */
  flex-grow: 0;
  /* -webkit-flex-shrink: 1; */
  /* -ms-flex-negative: 1; */
  /* flex-shrink: 1; */
}

.flex-col {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
}

.bdrd-20 {
  border-radius: 20px;
}

.bdrd-30 {
  border-radius: 20px;
}
.bdrd-round {
  border-radius: 50%;
}
.bg-fff {
  background-color: #fff;
}

.bg-f5 {
  background-color: #f5f5f5;
}

.border-b {
  border-bottom: 1px solid #f5f5f5;
}

.border-t {
  border-top: 1px solid #f5f5f5;
}

